# -*- coding: utf-8 -*-
# @Time    : 2019/9/2 23:27
# @Author  : 十年
# @Site    : https://gitee.com/chshao/aiplotest
# @CSDN    : https://blog.csdn.net/m0_37576542?type=blog
# @File    : CException.py
# @Software: PyCharm


class CustomException(Exception):

    def __init__(self, error):
        super(CustomException, self).__init__()
        self.errorMsg = error

    def __str__(self):
        return self.errorMsg


class NoTestCaseException(CustomException):
    """has no testcase exception"""

    def __init__(self, error):
        super(NoTestCaseException, self).__init__(error)


class TestCaseConfigError(CustomException):

    def __init__(self, error):
        super(TestCaseConfigError, self).__init__(error)


class AssertError(CustomException):

    def __init__(self, error):
        super(AssertError, self).__init__(error)


if __name__ == '__main__':

    raise TestCaseConfigError("format is wrong, has more than one ':'")
